package com.diamond.bo;

import java.io.Serializable;


public class UserBO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 3295400198703372386L;
	
	private Long userId;
	private String userName;
	private String password;
	private String randCode;    //用户登录验证码
	private String registerDate;
	private String userType;   //'A'为超级管理员；'B'为总代理；'C'为经销商；'D'为经销商子用户；'E'为普通管理员
	private String userTypeName;
	private String logo;
	private Integer logoWidth;
	private Integer logoHeight;
	private String bigPic;
	private String smallPic;
	private Long parentAgentId;
	private Long parentDealerId;
	private String cmpName;
	private String cmpAddress;
	private String brandName;
	private String email;
	private String contact;
	private String contactTel;
	private String cmpTel;
	private String cmpFax;
	private String postAddress;
	private String area;
	private String license;
	private String taxRegistration;
	private String addressee;
	private String addresseeTel;
	private String memo;
	
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getRegisterDate() {
		return registerDate;
	}
	public void setRegisterDate(String registerDate) {
		this.registerDate = registerDate;
	}
	public String getUserType() {
		return userType;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	}
	public String getLogo() {
		return logo;
	}
	public void setLogo(String logo) {
		this.logo = logo;
	}
	public String getBigPic() {
		return bigPic;
	}
	public void setBigPic(String bigPic) {
		this.bigPic = bigPic;
	}
	public String getSmallPic() {
		return smallPic;
	}
	public void setSmallPic(String smallPic) {
		this.smallPic = smallPic;
	}
	public String getCmpName() {
		return cmpName;
	}
	public void setCmpName(String cmpName) {
		this.cmpName = cmpName;
	}
	public String getCmpAddress() {
		return cmpAddress;
	}
	public void setCmpAddress(String cmpAddress) {
		this.cmpAddress = cmpAddress;
	}
	public String getBrandName() {
		return brandName;
	}
	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}
	public String getContactTel() {
		return contactTel;
	}
	public void setContactTel(String contactTel) {
		this.contactTel = contactTel;
	}
	public String getCmpTel() {
		return cmpTel;
	}
	public void setCmpTel(String cmpTel) {
		this.cmpTel = cmpTel;
	}
	public String getCmpFax() {
		return cmpFax;
	}
	public void setCmpFax(String cmpFax) {
		this.cmpFax = cmpFax;
	}
	public String getPostAddress() {
		return postAddress;
	}
	public void setPostAddress(String postAddress) {
		this.postAddress = postAddress;
	}
	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		this.area = area;
	}
	public String getLicense() {
		return license;
	}
	public void setLicense(String license) {
		this.license = license;
	}
	public String getTaxRegistration() {
		return taxRegistration;
	}
	public void setTaxRegistration(String taxRegistration) {
		this.taxRegistration = taxRegistration;
	}
	public Long getParentAgentId() {
		return parentAgentId;
	}
	public void setParentAgentId(Long parentAgentId) {
		this.parentAgentId = parentAgentId;
	}
	public Long getParentDealerId() {
		return parentDealerId;
	}
	public void setParentDealerId(Long parentDealerId) {
		this.parentDealerId = parentDealerId;
	}
	public String getAddressee() {
		return addressee;
	}
	public void setAddressee(String addressee) {
		this.addressee = addressee;
	}
	public String getAddresseeTel() {
		return addresseeTel;
	}
	public void setAddresseeTel(String addresseeTel) {
		this.addresseeTel = addresseeTel;
	}
	public String getUserTypeName() {
		if ("A".equals(this.getUserType())){
			this.setUserTypeName("超级管理员");
		} else if ("B".equals(this.getUserType())) {
			this.setUserTypeName("总代理用户");
		} else if ("C".equals(this.getUserType())) {
			this.setUserTypeName("经销商用户");
		} else if ("D".equals(this.getUserType())) {
			this.setUserTypeName("经销商子用户");
		} else if ("E".equals(this.getUserType())) {
			this.setUserTypeName("系统管理员");
		}
		return userTypeName;
	}
	public void setUserTypeName(String userTypeName) {
		this.userTypeName = userTypeName;
	}
	public String getRandCode() {
		return randCode;
	}
	public void setRandCode(String randCode) {
		this.randCode = randCode;
	}
	public Integer getLogoWidth() {
		return logoWidth;
	}
	public void setLogoWidth(Integer logoWidth) {
		this.logoWidth = logoWidth;
	}
	public Integer getLogoHeight() {
		return logoHeight;
	}
	public void setLogoHeight(Integer logoHeight) {
		this.logoHeight = logoHeight;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	
}
